{extend name="base" /}
{block name="content"}
<div class="view-product">
	<div class="authority">
		<div class="authority-head">
			<div class="manage-head">
				<h6 class="layout padding-left manage-head-con">管理员列表</h6>
			</div>
			<div class="manage-detail">
				<div class="margin-tb manage-detail-con clearfix">
					<a class="h5 margin-large-left custom fl" href="#">添加管理员</a>
				</div>
			</div>
		</div>
		<div class="authority-content">
			<div class="list-content show">
				<div class="offcial-table tr-border margin-big-top clearfix">
					<div class="tr-th clearfix">
						<div class="th w20">
							管理员账号
						</div>
						<div class="th w15">
							账户名称
						</div>
						<div class="th w15">
							手机
						</div>
						<div class="th w15">
							邮箱
						</div>
						<div class="th w20">
							最后登录日期
						</div>
						<div class="th w15">
							操作
						</div>
					</div>
					{empty name='admin_list'}
					<div class="tr non-info show border-bottom-none">
		            	<span>没查询到符合条件的记录</span>
		            </div>
					{/empty}
					{foreach $admin_list as $key => $val}
					<div class="tr clearfix border-bottom-none {if condition='($key+1)%2==0'}dan{/if}">
						<div class="td w20">
							{$val['username']}
						</div>
						<div class="td w15">
							{$val['name']}
						</div>
						<div class="td w15">
							{$val['mobile']}
						</div>
						<div class="td w15">
							{$val['email']}
						</div>
						<div class="td w20">
							{$val['update_time']}
						</div>
						<div class="td w15">
							<a lay-event="del" onclick="del(this)" data-id="{$val.id}" data-url="/admin/admin/delete" class="button-word2 ">
								<i class="layui-icon layui-icon-delete"></i> 删除
							</a>
						</div>
					</div>
					{/foreach}
				</div>
			</div>
			<div class="show-page padding-big-right">
				{$admin_list->render()}
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="/static/admin/Js/jquery-1.7.2.min.js"></script>
<script src="/static/admin/Js/common.js"></script>
<script>
    layui.use(['jquery', 'element', 'table', 'form', 'laypage', 'layer'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table,
            laypage = layui.laypage,
            layer = layui.layer;     
    });
</script>

{/block}